/*************************************************************************
 * @file: kvr.cpp
 * @date: 01/04/2012
 * TOPOL v1_0 - (c)copyright 2012 TEC/UFF
 *************************************************************************
 * This is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 ************************************************************************/

// includes
//----------
#include "kvr.h"
#include <iostream>
#include "../entity/solid.h"
#include "../entity/face.h"
#include "../entity/loop.h"
#include "../entity/vertex.h"
#include "../entity/halfedge.h"
#include "../entity/edge.h"
#include "../entity/ipoint.h"



///////////////////////////////////////////////////
///  Constructor and Destructor Implementation  ///
///////////////////////////////////////////////////

//-------------------------------------------------------------------------
KVR::KVR( Loop* _loop )
: m_loop( _loop )
{

}
//-------------------------------------------------------------------------



///////////////////////////////////////
///  PUBLIC Methods Implementation  ///
///////////////////////////////////////

//-------------------------------------------------------------------------
void
KVR::execute()
{
  std::cout << "\nKVR::execute() \n";
  HalfEdge* he = m_loop->getLedg();
  Face* face = m_loop->getFace();
  delete he->getVtx();
  delete he;
  delete m_loop;
}
//-------------------------------------------------------------------------

//-------------------------------------------------------------------------
void
KVR::unExecute()
{
  std::cout << "\nKVR::unExecute() NOT IMPLEMENTED!\n";
}
//-------------------------------------------------------------------------







